Problem Note 33088: PROC NLIN may report invalid coding error and invalid sequence of command errors
When using PROC NLIN under the following four conditions:
- PDATA= data set
- BY statement
- OUTPUT statement
- Variables exist in the input data set that are not used in the analysis
then the SAS LOG will report the following errors:
ERROR: INTERNAL CODING ERROR Attempt to define a new variable number 2 on
file WORK.NEW.DATA. Xvfind()or xvname() has been called for an undefined variable after variable selection had been terminated via xvsele().
ERROR: Invalid sequence of commands for file WORK.PREDICTOUT.DATA.
To prevent this problem from occurring, drop all variables not used in the analysis using the drop sub-option on the DATA= option in the PROC NLIN statement:
data=yourdata(drop=variable1 variable2 variable3)
Dropping the unused varaibles allows the use of the PDATA= option, BY-group processing, and the OUTPUT statement.
Operating System and Release Information
SAS System | SAS/STAT | Solaris for x64 | 9.2 TS1M0 | 9.2 TS2M0 |
Linux for x64 | 9.2 TS1M0 | 9.2 TS2M0 |
OpenVMS on HP Integrity | 9.2 TS1M0 | 9.2 TS2M0 |
HP-UX IPF | 9.2 TS1M0 | 9.2 TS2M0 |
Linux | 9.2 TS1M0 | 9.2 TS2M0 |
64-bit Enabled HP-UX | 9.2 TS1M0 | 9.2 TS2M0 |
64-bit Enabled Solaris | 9.2 TS1M0 | 9.2 TS2M0 |
Windows Vista | 9.2 TS1M0 | 9.2 TS2M0 |
64-bit Enabled AIX | 9.2 TS1M0 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Standard Edition | 9.2 TS1M0 | 9.2 TS2M0 |
Microsoft Windows XP Professional | 9.2 TS1M0 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS1M0 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS1M0 | 9.2 TS2M0 |
Microsoft Windows XP 64-bit Edition | 9.2 TS1M0 | 9.2 TS2M0 |
Microsoft® Windows® for x64 | 9.2 TS1M0 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS1M0 | 9.2 TS2M0 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS1M0 | 9.2 TS2M0 |
z/OS | 9.2 TS1M0 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS1M0 | 9.2 TS2M0 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
The developer has confirmed this is a bug in PROC NLIN and will occur when the following four conditions hold :
1) PDATA= data set
2) BY statement
3) OUTPUT OUT= statement used
4) INPUT data set has variables not used in the analysis
Type: | Problem Note |
Priority: | high |
Topic: | SAS Reference ==> Procedures ==> NLIN Analytics ==> Regression
|
Date Modified: | 2009-06-23 13:19:46 |
Date Created: | 2008-08-27 14:56:34 |